package com.ruoyi.common.core.domain.entity;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * 评论详情对象 rent_comment
 * 
 * @author ssd
 * date  2024-03-29
 */
public class SysComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论ID */
    private Long commentId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    @NotBlank(message = "评论内容不能为空")
    private String content;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date commentTime;

    /** 评论图片 */
    @Excel(name = "评论图片")
    private String commentPhoto;

    /** 逻辑删除：0,：存在，1：删除 */
    @Excel(name = "逻辑删除：0,：存在，1：删除")
    private Integer delFlag;

    /** 几星评论 */
    @Excel(name = "几星评论")
    @Min(value = 0, message = "几星评论必须大于等于0")
    @Max(value = 5, message = "几星评论必须小于等于5")
    private Float star;

    /** 房源评论id关联表信息 */
    private List<SysPropertyComment> sysPropertyCommentList;
    /** 房源信息 */
    private SysProperty sysProperty;
    /** 房源多选的参数ids */
    private List<Long> ids;

    public List<Long> getIds() {
        return ids;
    }

    public void setIds(List<Long> ids) {
        this.ids = ids;
    }

    public void setCommentId(Long commentId)
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setCommentTime(Date commentTime) 
    {
        this.commentTime = commentTime;
    }

    public Date getCommentTime() 
    {
        return commentTime;
    }
    public void setCommentPhoto(String commentPhoto) 
    {
        this.commentPhoto = commentPhoto;
    }

    public String getCommentPhoto() 
    {
        return commentPhoto;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    public Float getStar() {
        return star;
    }

    public void setStar(Float star) {
        this.star = star;
    }

    public List<SysPropertyComment> getSysPropertyCommentList()
    {
        return sysPropertyCommentList;
    }


    public void setSysPropertyCommentList(List<SysPropertyComment> sysPropertyCommentList)
    {
        this.sysPropertyCommentList = sysPropertyCommentList;
    }

    public SysProperty getSysProperty() {
        return sysProperty;
    }

    public void setSysProperty(SysProperty sysProperty) {
        this.sysProperty = sysProperty;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("content", getContent())
            .append("commentTime", getCommentTime())
            .append("commentPhoto", getCommentPhoto())
            .append("delFlag", getDelFlag())
            .append("star", getStar())
            .append("sysPropertyCommentList", getSysPropertyCommentList())
            .append("sysProperty", getSysProperty())
            .append("createBy",getCreateBy())
            .append("updateBy",getUpdateBy())
            .append("ids",getIds())
            .toString();
    }
}
